package hl.model;
// Generated 2018-5-23 22:38:45 by Hibernate Tools 4.3.5.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TAppInfo generated by hbm2java
 */
@Entity
@Table(name = "t_app_info", catalog = "matcha_gym")
public class TAppInfo implements java.io.Serializable {

	private Long pkAppInfo;
	private TPcOperator TPcOperator;
	private String infoTitle;
	private String infoIndex;
	private String infoStatus;
	private String infoType;
	private Date cdatetime;
	private Date mdatetime;

	public TAppInfo() {
	}

	public TAppInfo(TPcOperator TPcOperator, String infoTitle, String infoIndex, String infoStatus, String infoType, Date cdatetime, Date mdatetime) {
		this.TPcOperator = TPcOperator;
		this.infoTitle = infoTitle;
		this.infoIndex = infoIndex;
		this.infoStatus = infoStatus;
		this.infoType = infoType;
		this.cdatetime = cdatetime;
		this.mdatetime = mdatetime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "PK_APP_INFO", unique = true, nullable = false)
	public Long getPkAppInfo() {
		return this.pkAppInfo;
	}

	public void setPkAppInfo(Long pkAppInfo) {
		this.pkAppInfo = pkAppInfo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_PC_OPERATOR")
	public TPcOperator getTPcOperator() {
		return this.TPcOperator;
	}

	public void setTPcOperator(TPcOperator TPcOperator) {
		this.TPcOperator = TPcOperator;
	}

	@Column(name = "INFO_TITLE", length = 256)
	public String getInfoTitle() {
		return this.infoTitle;
	}

	public void setInfoTitle(String infoTitle) {
		this.infoTitle = infoTitle;
	}

	@Column(name = "INFO_INDEX", length = 1024)
	public String getInfoIndex() {
		return this.infoIndex;
	}

	public void setInfoIndex(String infoIndex) {
		this.infoIndex = infoIndex;
	}

	@Column(name = "INFO_STATUS", length = 16)
	public String getInfoStatus() {
		return this.infoStatus;
	}

	public void setInfoStatus(String infoStatus) {
		this.infoStatus = infoStatus;
	}

	@Column(name = "INFO_TYPE", length = 8)
	public String getInfoType() {
		return this.infoType;
	}

	public void setInfoType(String infoType) {
		this.infoType = infoType;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CDATETIME", length = 19)
	public Date getCdatetime() {
		return this.cdatetime;
	}

	public void setCdatetime(Date cdatetime) {
		this.cdatetime = cdatetime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MDATETIME", length = 19)
	public Date getMdatetime() {
		return this.mdatetime;
	}

	public void setMdatetime(Date mdatetime) {
		this.mdatetime = mdatetime;
	}

}
